<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<script type="text/javascript">
	//工厂函数
      function car(){
          var obj=new Object();
          obj.certificate = "合格"
          obj.from = "China";
          obj.price = 200000;
          obj.explain = "这车将会是全球限量"
          obj.gn=function(){
              alert("跑")
          }
          return obj;
      }
     var car1=new car()
     alert('这个车是'+car1.certificate+"的，建议零售价价为"+car1.price+","+car1.explain)
     
	</script>
	<body>
	</body>
</html>
